home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / ncsat.cpt / Telnet2.5 final / main / alias.h next >
Encoding:
C/C++ Source or Header  |  1992-04-03  |  704 b   |  31 lines

  1. /* NCSA: definitions of the alias structures that are used to store
  2.         alias data in */
  3.  
  4. struct AliasRecord        /* the record format for each alias */
  5.     {
  6.     char    name[64];
  7.     long     port;
  8.     char     alias[64];
  9.     };
  10.     
  11. typedef struct AliasRecord AliasRecord;        /* prevent MPW from whining about type errors */
  12.  
  13.  
  14.  
  15. struct AliasRez                /* the actual resource format that I am using */
  16.     {
  17.     short     number;
  18.     AliasRecord    aliases[1];
  19.     };
  20.  
  21.  
  22. typedef struct AliasRez AliasRez;    /* shut up */
  23.  
  24.  
  25. /* NCSA: here's some function definitions so that MPW will be happy... */
  26.  
  27. int GetDataFromAlias (char *theName, AliasRecord *theRecord);
  28. void DeleteAlias (short theNumber, AliasRez **hAlias);
  29. void DoAlias (void);
  30. AliasRez **GetAlias(void);
  31.